package com.onlinelibrary.activities.main.ui.service;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.library.baseAdapters.BR;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProvider;

import com.onlinelibrary.R;
import com.onlinelibrary.activities.main.ui.tour.TourVM;
import com.onlinelibrary.databinding.FragmentServiceBinding;
import com.onlinelibrary.databinding.FragmentTourBinding;

public class ServiceFragment extends Fragment {
    public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View root = inflater.inflate(R.layout.fragment_service, container, false);
        FragmentServiceBinding binding = DataBindingUtil.bind(root);
        ServiceVM vm = new ViewModelProvider(this).get(ServiceVM.class);
        assert binding != null;
        binding.setVariable(BR.vm,vm);
        binding.setLifecycleOwner(this);
        vm.setBinding(binding,this,requireActivity());
        return root;
    }
}